<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class User extends Eloquent
{
    protected $table = 'user';
    
    public function get_detail()
    {
        return $this->has_one('user_detail', 'user_id');
    }
    
    public function get_answer()
    {
        return $this->has_many('answer', 'uid');
    }
}